﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ProyectoHCI
{
    public partial class Plantilla : Form
    {
        public Plantilla()
        {
            InitializeComponent();
        }

      
        //se presiono el boton de cerrar aplicacion
        private void button1_Click_1(object sender, EventArgs e)
        {
            const string message ="¿Realmente deseas salir?";
            const string caption = "Salir";
            var result = MessageBox.Show(message, caption,
                                         MessageBoxButtons.YesNo,
                                         MessageBoxIcon.Question);
            // se presiono yes
            if (result == DialogResult.Yes)
            {
                Application.Exit();
            }
        }

    }
}
